/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xddai.greword;

/**
 *
 * @author xddai
 */
public class EnglishWord {

    private String word;
    private String explain;

    public EnglishWord(String word, String explain) {
	this.word = word;
	this.explain = explain;
    }

    public EnglishWord() {
    }

    public void reset(String word, String explain) {
	this.word = word;
	this.explain = explain;
    }

    public String getExplain() {
	return explain;
    }

    public String getWord() {
	return word;
    }

    public void setExplain(String explain) {
	this.explain = explain;
    }

    public void appendExplain(String ex) {
	if (explain == null) {
	    explain = ex+"\r\n";
	} else {
	    explain += ex+"\r\n";
	}
    }

    public void setWord(String word) {
	this.word = word;
    }

}
